/**
 * VIP数据表
 */
const {SchameTypes, Schema} = require('mongoose');
module.exports = class extends think.Mongoose {
  get schema() {
    var _schema = new Schema({
      name: {type: String}, // VIP名字
      price: {type: Number}, // VIP的价格
      icon: {type: String}, // VIP的图标
      color: {type: String}, // VIP的代表颜色
      desc: {type: String}, // 描述
      rule: {type: Number, default: 1}, // VIP开通规则，1是原价开通   2.是减去已开通上级VIP的价格
    })
    return _schema;
  }
}